package com.africanmoviesmobile.webservice;

import org.json.JSONObject;

import android.content.Context;

import com.africanmoviesmobile.webservice.inf.Request;

public class AmmRequest extends AmmWebService implements Request {

	private JSONObject _jsonObject;
	
	public AmmRequest(JSONObject jsonObject, Context context) {
		super(context);
		_jsonObject = jsonObject;
	}

	public int getRequestId() {
		return _jsonObject.optInt("request_id");
	}
	
	public int getMovieId() {
		return _jsonObject.optInt("movie_id");
	}

	public String getMovieTitle() {
		return _jsonObject.optString("movie_title");
	}

	public String getCountryName() {
		return _jsonObject.optString("country_name");
	}

	public int getReleaseYear() {
		return _jsonObject.optInt("release_year");
	}
	
	public String getDateRequested() {
		return _jsonObject.optString("date_requested");
	}

	public boolean isAvailable() {
		return _jsonObject.optBoolean("is_available");
	}

}
